<?php extract($this->_x, EXTR_SKIP); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php if(empty($title)){ ?>管理后台<?php } else { print $title; } ?></title>
<link rel="stylesheet" rev="stylesheet" type="text/css" href="/images/admincp/style.css" media="all" id="stylesheet" />
<link rel="stylesheet" rev="stylesheet" type="text/css" href="<?=$ctx?>js/uploader/uploader.css" />

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/ajaxf.js"></script>
<script type="text/javascript" src="js/jquery.tools.min.js"></script>
<script type="text/javascript" src="js/validator.js"></script>
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript">
//<![CDATA[
var ctx = '<?=$site.$ctx?>';
if(ctx != '/') {
	var stylesheet = $('#stylesheet').attr('href').substr(1);
	$('#stylesheet').attr('href', ctx + stylesheet);
}

$(function(){
	$('#tips-switch').click(function(){
		if($('#tips').hasClass('tips-open')) {
			$('#tips').removeClass('tips-open');
			$('#tips').addClass('tips-close')
		} else {
			$('#tips').removeClass('tips-close');
			$('#tips').addClass('tips-open')
		}
	});
});

//alert(1);
//]]>
</script>
</head>
<body>
<?php include $this->crumb();?>
<?php  if(!empty($tips)) {?>
<div id="tips" class="tips-open">
  <div id="tips-main" class="mt bd pd bg">
    <h3>提示技巧</h3>
    <ul>
        <?php foreach($tips as $tip) {?>
        <li> &#8250; <?=$tip?></li>
        <?php }?>
    </ul>
  </div>
  <div id="tips-switch" title="提示技巧"><span></span></div>
</div>
<?php }?>
<?php  if($this->hasErr()) { $es = $this->getErrs();?>
<ul class="mt msg bd err">
    <?php foreach($es as $e) {?>
    <li><?=$e?></li>
    <?php }?>
</ul>
<?php }?>
<?php  if($this->hasOK()) { $oks = $this->getOKs();?>
<ul class="mt msg bd ok">
    <?php foreach($oks as $ok) {?>
    <li><?=$ok?></li>
    <?php }?>
</ul>
<?php }?>
<?php  if($this->hasWarn()) { $warns = $this->getWarns();?>
<ul class="mt msg bd warn">
    <?php foreach($warns as $warn) {?>
    <li><?=$warn?></li>
    <?php }?>
</ul>
<?php }?>